<!DOCTYPE html>

<html lang="zh-Hans">
  <head>
    <meta charset="utf-8" />
    <meta name="author" content="rogepi" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="/style.css" />
    <script src="/vue.global.js"></script>
    <title>7-slot-basic</title>
  </head>

  <body>
    <div id="slot-basic" class="demo">
      <alert-box> Something bad happened. </alert-box>
    </div>
    <script>
      const app = Vue.createApp({});

      app.component('alert-box', {
        template: `
    <div class="demo-alert-box">
      <strong>Error!</strong>
      <slot></slot>
    </div>
    `,
      });
      app.mount('#slot-basic');
    </script>
  </body>
</html>
